<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>销售订单</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../../../component/elementUI/index.css">
    <link rel="stylesheet" href="../../../style/wangeditor.css">
    <link rel="stylesheet" href="../../../style/index.css">
</head>

<body>
    <div id="app" v-cloak>
        <el-form :inline="true" :form="form">
            <el-form-item>
                <el-input v-model.trim="form.Sales_Order_SerialNumber" clearable placeholder="发货单号/所属订单号" />
            </el-form-item>
            <el-form-item>
                <el-select v-model.trim="form.Activity_SerialNumber" clearable style="width: 100%;"
                    placeholder="请选择供应商">
                    <el-option v-for="item in Activity" :key="item.Activity_SerialNumber" :label="item.Activity_Name"
                        :value="item.Activity_SerialNumber"></el-option>
                </el-select>
            </el-form-item>
            <el-form-item>
                <el-date-picker prefix-icon="el-icon-date" v-model="form.Sales_Date" clearable type="datetimerange"
                    value-format="yyyy-MM-dd HH:mm:ss" format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期"
                    end-placeholder="结束日期"></el-date-picker>
            </el-form-item>
            <el-form-item>
                <el-button type="primary" @click="onSerach">查询</el-button>
            </el-form-item>
            <el-form-item>
                <yl-button type="success" :data="ExportData" :loading="loading" @click="Export(form)">销售订单导出</yl-button>
            </el-form-item>
        </el-form>

        <el-table :data="tableData" stripe border height="calc(100vh - 140px)" style="width: 100%">
            <el-table-column align="center" type="index" label="序号" width="50"></el-table-column>
            <el-table-column align="center" width="160" label="操作">
                <template v-slot="{row}">
                    <el-button type="primary" size="small" >商品</el-button>
                    <el-button type="" size="small" >物流</el-button>
                </template>
            </el-table-column>
            <el-table-column align="center" prop="Sales_Order_SerialNumber" width="500" label="所属订单明细编号"></el-table-column>
            <el-table-column align="center" prop="Sales_Order_SerialNumber" width="500" label="订单编号"></el-table-column>
            <el-table-column align="center" prop="Sales_Date"  label="下单时间"></el-table-column>
            <el-table-column align="center" prop=""  label="供应商名称"></el-table-column>
            <el-table-column align="center" prop=""  label="发货状态"></el-table-column>
        </el-table>
        <el-pagination style="margin-top: 5px;" background @size-change="handleSizeChange"
            @current-change="handleCurrentChange" :current-page="form.page" :page-sizes="[20, 30, 50]"
            :page-size="form.limit" layout="total, sizes, prev, pager, next, jumper" :total="total">
        </el-pagination>
        <show-detail :visible.sync="dialogVisible" :data="Sales_Order"></show-detail>
    </div>
    <script type="text/javascript" src="../../../utils/wangeditor.js"></script>
    <script type="text/javascript" src="../../../utils/jquery.min.js"></script>
    <script type="text/javascript" src="../../../utils/jquery.cookie.js"></script>
    <script type="text/javascript" src="../../../utils/vue.min.js"></script>
    <script type="text/javascript" src="../../../utils/vuex.min.js"></script>
    <script type="text/javascript" src="../../../component/elementUI/index.js"></script>
    <script type="text/javascript" src="../../../component/component.js"></script>
    <script type="text/javascript" src="../../../utils/FileSaver.min.js"></script>
    <script type="text/javascript" src="../../../utils/FileSaver.js"></script>
    <script type="text/javascript" src="../../../utils/xlsx.full.min.js"></script>
    <script type="text/javascript" src="../../../utils/xlsx.core.min.js"></script>
    <script type="text/javascript" src="../../../config/config.js"></script>
    <script type="text/javascript" src="../../../utils/compressor.js"></script>
    <script type="text/javascript" src="../../../utils/ID_Validity.js"></script>
    <script type="text/javascript" src="../../../utils/utils.js"></script>
    <script type="text/javascript" src="js/index.js"></script>
</body>

</html>